OPC Studio User's Guide and Reference
StringStringDictionary Constructor(IReadOnlyList<String>,IReadOnlyList<String>)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Collections.Specialized Namespace > StringStringDictionary Class > StringStringDictionary Constructor : StringStringDictionary Constructor(IReadOnlyList<String>,IReadOnlyList<String>)
The list of keys.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

The list of values.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value can be null (Nothing in Visual Basic).

Initializes a new instance of the StringStringDictionary class with elements constructed by taking corresponding elements from the key and value lists.
Syntax
'Declaration
 
Public Function New( _
   ByVal keyList As IReadOnlyList(Of String), _
   ByVal valueList As IReadOnlyList(Of String) _
)
'Usage
 
Dim keyList As IReadOnlyList(Of String)
Dim valueList As IReadOnlyList(Of String)
 
Dim instance As New StringStringDictionary(keyList, valueList)
public StringStringDictionary( 
   IReadOnlyList<string> keyList,
   IReadOnlyList<string> valueList
)

Parameters

keyList
The list of keys.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

valueList
The list of values.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value can be null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also